package com.zh.note.huawei.onehundred.求最小步数;

import java.util.Scanner;

/**
 * @Author: zhanghuan
 * @date: 2023/9/12 18:53
 * @description: create it
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        if (n == 1) {
            System.out.println(2);
            return;
        }
        if (n % 3 == 0) {
            System.out.println(n / 3);
            return;
        } else if (n % 3 == 2) {
            System.out.println(n / 3 + 1);
            return;

        } else {
            // n % 3 == 1
            System.out.println(n / 3 + 1);

        }
    }
}
